﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="zykc.aspx.cs" Inherits="Account_kcgl_kcdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .eDataTable
    {
        font-size: medium;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-top:10px">&nbsp;
    <asp:HyperLink ID="HyperLink2" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcdd.aspx" CssClass="btn01" >考试地点设置</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink3" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/zykc.aspx" ForeColor="Red" CssClass="btn01">专用考场指定</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink4" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcy.aspx" CssClass="btn01" >考场预安排</asp:HyperLink>
&nbsp;
    <asp:HyperLink ID="HyperLink5" runat="server" Font-Underline="False" 
        NavigateUrl="~/Admin/kcgl/kcgl.aspx" CssClass="btn01" >考场管理</asp:HyperLink>
    </div>
    <div style=" margin:10px auto; font-size: x-large; font-weight: bold; color: #666666;" 
        align="center">
        专用考场指定
&nbsp;
<p style="font-size: small">&nbsp; &nbsp;</p>

        <asp:GridView ID="GridView2" runat="server" CssClass="eDataTable" 
            Font-Bold="False" Width="100%" AllowPaging="True" 
            AutoGenerateColumns="False" onpageindexchanging="GridView2_PageIndexChanging" 
            onrowdatabound="GridView2_RowDataBound" DataKeyNames="classNo" 
            BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                </asp:TemplateField>
                <asp:BoundField DataField="classNo" HeaderText="考场号">
                <HeaderStyle HorizontalAlign="Left" Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="place" HeaderText="考试地点">
                <HeaderStyle HorizontalAlign="Left" Width="35%" />
                </asp:BoundField>
                <asp:BoundField DataField="maxNum" HeaderText="可考人数">
                <HeaderStyle HorizontalAlign="Left" Width="15%" />
                </asp:BoundField>
                <asp:BoundField DataField="canTestSub" HeaderText="适考科目">
                <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="多选">
                    <EditItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page" 
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev" 
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page" 
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page" 
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="30px" ForeColor="Black" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>'/>页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2" 
                    CommandName="Page" Text="GO"/>
            </PagerTemplate>
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>

       <div align="left">&nbsp;
           <asp:Button ID="Button1" runat="server" CssClass="button" 
               onclick="Button1_Click" Text="添加可考课程" />
        </div> 


    </div>
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
            CssClass="eDataTable" Width="100%" BackColor="White" BorderColor="#999999" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:BoundField DataField="classNo" HeaderText="考场号">
                <HeaderStyle HorizontalAlign="Left" Width="5%" />
                </asp:BoundField>
                <asp:BoundField DataField="place" HeaderText="考试地点">
                <HeaderStyle HorizontalAlign="Left" Width="10%" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="适考科目">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:DataList ID="DataList1" runat="server" CssClass="eDataTable" 
                            DataSourceID="LinqDataSource1" RepeatColumns="9" RepeatDirection="Horizontal">
                            <ItemTemplate>
                                <br />
                                <asp:CheckBox ID="CheckBox2" runat="server" />
                                <asp:Label ID="subNameLabel" runat="server" Text='<%# Eval("subName") %>' />
                                <br />
                                <asp:HiddenField ID="HiddenField1" runat="server" 
                                    Value='<%# Eval("subNum") %>' />
                                <br />
                            </ItemTemplate>
                        </asp:DataList>
                        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                            ContextTypeName="DataClassesDataContext" EntityTypeName="" TableName="subject">
                        </asp:LinqDataSource>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
        <div>&nbsp;<asp:Button ID="Button2" runat="server" CssClass="button" 
                onclick="Button2_Click" Text="保存" />
            &nbsp;
            <asp:Button ID="Button3" runat="server" CssClass="button" 
                onclick="Button3_Click" Text="取消" />
        </div>
    </asp:Panel>
</asp:Content>

